Essential TypeScript by Adam Freeman
Author:Adam Freeman
Language: eng
Format: epub, pdf
ISBN: 9781484249796
Publisher: Apress
let data: Person[] = [new Employee("fvega", "Fidel Vega", "Sales", "Paris"),
new Customer("ajones", "Alice Jones", "London", 500)];
data.push(new Supplier("dpeters", "Dora Peters", "New York", "Acme"));
data.forEach(item => console.log(item.getDetails()));
Listing 11-14.Defining an Abstract Class in the index.ts File in the src Folder
Abstract classes are created using the abstract keyword before the class keyword, as shown in Figure 11-4.
Figure 11-4.Defining an abstract class
The abstract keyword is also applied to individual methods, which are defined without a body, as shown in Figure 11-5.
Figure 11-5.Defining an abstract method
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
| NET | C & C++ Windows Programming |
| SQL Server | VBA |
| Visual Basic |
The Mikado Method by Ola Ellnestam Daniel Brolund(20293)
Hello! Python by Anthony Briggs(19616)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(17889)
Dependency Injection in .NET by Mark Seemann(17854)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17295)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17207)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16926)
Kotlin in Action by Dmitry Jemerov(16848)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(15990)
Grails in Action by Glen Smith Peter Ledbrook(15158)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10312)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(8048)
Microservices with Go by Alexander Shuiskov(7816)
Practical Design Patterns for Java Developers by Miroslav Wengner(7714)
Test Automation Engineering Handbook by Manikandan Sambamurthy(7665)
Angular Projects - Third Edition by Aristeidis Bampakos(7151)
The Art of Crafting User Stories by The Art of Crafting User Stories(6606)
NetSuite for Consultants - Second Edition by Peter Ries(6528)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(6304)